package o;

import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Drawable.ConstantState;
import android.os.Build.VERSION;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

final class gl extends ConstantState {
    Mode ˊ = ge.ˏ;
    int ˋ;
    ConstantState ˎ;
    ColorStateList ॱ = null;

    gl(@Nullable gl glVar) {
        if (glVar != null) {
            this.ˋ = glVar.ˋ;
            this.ˎ = glVar.ˎ;
            this.ॱ = glVar.ॱ;
            this.ˊ = glVar.ˊ;
        }
    }

    @NonNull
    public Drawable newDrawable() {
        return newDrawable(null);
    }

    @NonNull
    public Drawable newDrawable(@Nullable Resources resources) {
        if (VERSION.SDK_INT >= 21) {
            return new gm(this, resources);
        }
        return new ge(this, resources);
    }

    public int getChangingConfigurations() {
        return (this.ˎ != null ? this.ˎ.getChangingConfigurations() : 0) | this.ˋ;
    }

    boolean ॱ() {
        return this.ˎ != null;
    }
}
